package com.tid.hbasees.model;

import com.tid.hbasees.utils.hbase.HBaseHelper;

public class Event {

    private String eventID;

    private String eventName;

    private long eventStartTime;

    private long eventEndTime;

    private String netID;

    private String netLevel;

    private String strSrcDeviceID;

    private String strDstDeviceID;

    private int flowSize;

    private String protocalType;

    public String getRowkey() {
        return eventID + HBaseHelper.ROWKEY_SEP + eventStartTime +
                HBaseHelper.ROWKEY_SEP + eventEndTime;
    }

    public String getIndex1() {
        return strSrcDeviceID + HBaseHelper.ROWKEY_SEP + eventStartTime +
                HBaseHelper.ROWKEY_SEP + eventEndTime + HBaseHelper.ROWKEY_SEP + eventID;
    }

    public String getIndex2() {
        return strDstDeviceID + HBaseHelper.ROWKEY_SEP + eventStartTime +
                HBaseHelper.ROWKEY_SEP + eventEndTime + HBaseHelper.ROWKEY_SEP + eventID;
    }

    public String getIndex3() {
        return netID + HBaseHelper.ROWKEY_SEP + eventStartTime +
                HBaseHelper.ROWKEY_SEP + eventEndTime + HBaseHelper.ROWKEY_SEP + eventID;
    }

    public String getEventID() {
        return eventID;
    }

    public void setEventID(String eventID) {
        this.eventID = eventID;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public long getEventStartTime() {
        return eventStartTime;
    }

    public void setEventStartTime(long eventStartTime) {
        this.eventStartTime = eventStartTime;
    }

    public long getEventEndTime() {
        return eventEndTime;
    }

    public void setEventEndTime(long eventEndTime) {
        this.eventEndTime = eventEndTime;
    }

    public String getNetID() {
        return netID;
    }

    public void setNetID(String netID) {
        this.netID = netID;
    }

    public String getNetLevel() {
        return netLevel;
    }

    public void setNetLevel(String netLevel) {
        this.netLevel = netLevel;
    }

    public String getStrSrcDeviceID() {
        return strSrcDeviceID;
    }

    public void setStrSrcDeviceID(String strSrcDeviceID) {
        this.strSrcDeviceID = strSrcDeviceID;
    }

    public String getStrDstDeviceID() {
        return strDstDeviceID;
    }

    public void setStrDstDeviceID(String strDstDeviceID) {
        this.strDstDeviceID = strDstDeviceID;
    }

    public int getFlowSize() {
        return flowSize;
    }

    public void setFlowSize(int flowSize) {
        this.flowSize = flowSize;
    }

    public String getProtocalType() {
        return protocalType;
    }

    public void setProtocalType(String protocalType) {
        this.protocalType = protocalType;
    }
}
